package com.mls.fivedistrict.entity.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 创建订单请求实体
 * Created by chenxiuxiang on 2018/6/22.
 */
@Data
public class CreateOrderRequest {
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 商品ID
     */
    @NotNull(message = "商品不能为空")
    private Long goodsId;
    /**
     * 积分ID
     */
    @NotNull(message = "积分不能为空")
    private Long integralId;

    /**
     * 收货人
     */
    @NotEmpty(message = "收货信息不能为空")
    private String consignee;

    /**
     * 收货手机号
     */
    private String phone;

    /**
     * 收货地址
     */
    private String shippingAddress;
}
